package com.sl.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import com.sl.demo.config.DBConfig1;
import com.sl.demo.config.DBConfig2;

@SpringBootApplication
@EntityScan(basePackages= {"com.sl.demo.entity"})
@EnableJpaRepositories(basePackages= {"com.sl.demo.dao"})
@EnableConfigurationProperties(value = { DBConfig1.class, DBConfig2.class })
public class App {
	public static void main(String[] args) {
		SpringApplication.run(App.class, args);
	}
}
